home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
0574.ZIP
/
LSEEK.ASM
< prev
next >
Wrap
Assembly Source File
|
1986-10-20
|
444b
|
28 lines
include compiler.inc
ttl LSEEK, 1.05, 10-20-86 jwk
;low-level seek - long lseek(handle, offsetL, base);
dseg
exterr
cseg
procdef lseek, <<handle, word>, <offlo, word>, <offhi, word>, <base, byte>>
mov bx,handle
mov cx,offhi
mov dx,offlo
mov al,base
mov ah,42h
int 21h
jnc ex
moverr ax ;if error save it
mov ax,-1 ;and return -1L
mov dx,ax
ex:
pret ;else return DOS value
pend lseek
finish